//
//  AFNetworkingTool.h
//  AFNnetworking
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 mjh. All rights reserved.
//

#import <Foundation/Foundation.h>

//数据类型
typedef enum : NSUInteger {
    Data,
    JSON,
    XML,
} MyResult;

@interface AFNetworkingTool : NSObject

//get
+ (void)getUrl:(NSString *)url hudSuperView:(id)hudSuperView result:(MyResult)result success:(void(^)(id result))success failure:(void (^)(NSError * error))failure;
//post
+ (void)postUrl:(NSString *)url body:(id)body hudSuperView:(id)hudSuperView result:(MyResult)result success:(void(^)(id result))success failure:(void(^)(NSError *error))failure;

@end
